package net.wanho.shop.controller;

import lombok.RequiredArgsConstructor;
import net.wanho.shop.util.SimpleWeather;
import net.wanho.shop.vo.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 这个类是：
 *
 * @author: MENG HU WANG
 * @date: 2025/1/6 10:19
 * @version: 1.0
 */

@RestController
@RequiredArgsConstructor
public class WeatherController {

    @GetMapping("/weather")
    public AjaxResult getWeather() {
        return AjaxResult.success(SimpleWeather.queryWeather("南京"));
    }
}
